package stuman.entity;

import java.io.Serializable;

public class Grade implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private String name;
	private double maxScore;
	private double actualScore;
	
	public Grade(String name){
		this.name = name;
	}
	
	public Grade(double a, double m){
		actualScore = a;
		maxScore = m;
	}
	
	public String getName(){
		return name;
	}
	
	public double getActualScore(){
		return actualScore;
	}
	
	public double getMaxScore(){
		return maxScore;
	}
	
	public double getPercentScore(){
		return actualScore/maxScore;
	}
	
	
	

}
